<?php
   include  'base.php';
$pagenum1 = $_GET['pagenum1'];
$pagesize1 = $_GET['pagesize1'];
// $start = ($pagenum - 1) * $pagesize;

$sql1 = "SELECT * FROM `goods` LIMIT $pagenum1,$pagesize1";

$res1 = $conn -> query($sql1);
$arr1 =Array();

while ($row1 = mysqli_fetch_assoc($res1)){
    array_push($arr1,$row1);
}

echo json_encode($arr1);
?>